import numpy as np

x = np.array([1,2,3,4])
y = np.array([10,20,30,40])

# 1.相同维数(矩阵) 加,减,乘
if x.shape == y.shape:
    a = x + y
    b = y - x
    c = x * b
    print(a)
    print(b)
    print(c)
'''
[11 22 33 44]
[ 9 18 27 36]
[  9  36  81 144]
'''